home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 49
/
Aminet 49 (2002)(GTI - Schatztruhe)[!][Jun 2002].iso
/
Aminet
/
util
/
wb
/
GHelpDeluxeMUI.lha
/
GHelp
/
Install
< prev
next >
Wrap
Text File
|
2001-09-12
|
3KB
|
141 lines
; $VER: Install 1.0 (11.09.01)
; Installation-Script for GHelp V4.0
(
(set #overwrite-request
(cat "You have an earlier version of GHelp installed.\n"
"Should it be replaced?"))
(set #copygui
"Copy file GHelpGui to c?")
(set #copyghelp
"Copy GHelp to WBStartup?")
(set #copyenv
"Copy GHelp.ig to ENVARC?")
(set #copyenvhelp
"This file is used to filter out commonly used words during Guide Searching")
(set #desthelpprmt "Where do you want the documentation copied?")
(set #helptxt
"The destination for GHelp.guide. HELP: is the default")
(set #ghcontxt
(cat "Do you want the GHelpConvert utilitity copying.\n"
"This is required if you are updating from a version earlier than 3.1\n"
"See the docs for details"))
(set #iconprompt
"Which type of icons do want to install?")
)
; ----------------------------------
;(set @default-dest "RAM:")
(complete 0)
(
(set vernum (getversion "c:ghelpgui"))
(set ver (/ vernum 65536))
(set rev (- vernum (* ver 65536) ) )
(if( > ver 3.9)
(
(set #overwrite (askbool (prompt (#overwrite-request ver rev))
(help @askbool-help)
(default 1)))
(if( = #overwrite 0)
(
(exit)
))
))
)
(set @default-dest "SYS:WBStartup")
(complete 25)
(copylib (prompt #copygui)
(confirm)
(source "c/ghelpgui")
(dest "C:")
(help @copylib-help))
(complete 33)
(copyfiles
(prompt #copyghelp)
(source "wbstartup/ghelp")
(dest "sys:wbstartup")
(noposition))
(complete 66)
(copyfiles
(prompt #copyenv)
(source "envarc/GHelp.ig")
(dest "ENVARC:")
(help #copyenvhelp)
(noposition))
(complete 80)
(set #desthelp
(askdir
(prompt #desthelpprmt)
(help #helptxt)
(default 'HELP:'))
)
(copyfiles
(source "GHelp.guide")
(dest #desthelp))
(complete 90)
(copyfiles
(prompt #ghcontxt)
(confirm)
(source "c/ghelpconvert")
(dest "C:")
(help @copyfiles-help))
(complete 95)
(set #iconpath
(askchoice
(prompt #iconprompt)
(help @askchoice-help)
(choices
"OS3.5 Coloricons"
"Newicons")
(default 0)
)
)
(set #iconpath
(select #iconpath "os3.5" "newicons"))
(set #gpath
(cat #iconpath "/GHelp.guide.info"))
(set #dpath
(cat #iconpath "/Def_GHelp.info"))
(set #wpath
(cat #iconpath "/GHelp.info"))
(copyfiles
(source #gpath)
(dest #desthelp))
(copyfiles
(source #dpath)
(dest "ENVARC:sys")
)
(copyfiles
(source #wpath)
(dest "SYS:WBStartup"))
(message "Installation of GHelp is complete")
(complete 100)